//
//  CSGXCommInfoView.h
//  

#import "GXBaseView.h"
@class TOrderInfoModel;
#import "TSaleInfoModel.h"
#import "CSGXCommodityPickerBLL.h"
#import "TInventoryModel.h"


typedef void(^CallBackWithSaleModel)(TSaleInfoModel *saleModel, BOOL isEdit, NSInteger selectedPreviewIndex);

typedef void(^CallBackWithInventoryModel)(TInventoryModel *inventoryModel, BOOL isNotChecked);

@interface CSGXCommInfoView : GXBaseView

@property (nonatomic, assign) ViewControllerEnum viewControllerEnum;


/// 是否从 tvPreview 点击并加载数据
@property (nonatomic, assign) BOOL isPreview;
/// 选中的tvPreviewCell的索引
@property(nonatomic, assign) NSInteger selectedPreviewIndex;
/// 选中的tvThirdCell索引
@property(nonatomic, assign) NSInteger selectedThirdIndex;

/// 商品的分类
@property (nonatomic, copy) NSString * commodityCategory;

/// ”商品数量修改view“ 的数量
@property (nonatomic, assign) NSInteger numberModificationCount;


/// 预览saleModel
@property (nonatomic, strong) TSaleInfoModel * previewSaleModel;

/// Call Back SaleModel
@property (nonatomic,copy) CallBackWithSaleModel callbackWithSaleModel;
@property (nonatomic, copy) CallBackWithInventoryModel callbackWithInventoryModel;


///类方法
+ (instancetype)commInfoViewWithControllerEnum:(ViewControllerEnum)controllerEnum;



#pragma mark - check
@property (nonatomic, strong) TInventoryModel *inventoryModel;


@end
